export default [
  {
    path: '/g',
    component: '../layouts/BlankLayout',
    routes: [
      { path: '/g', redirect: '/g/login' },
      { path: '/g/login', component: './g/login' },
      { path: '/g/sso-login', component: './g/sso-login' },
      { path: '/g/logout', component: './g/logout' },
    ],
  },

  {
    path: '/',
    component: '../layouts/SecurityLayout',
    routes: [
      {
        path: '/',
        component: '../layouts/BasicLayout',
        routes: [
          {
            path: '/',
            redirect: '/hello-world',
          },

          {
            authority: ['000'],
            path: '/hello-world',
            component: './hello-world',
            icon: 'android',
            name: '测试一下',
          },

          {
            authority: ['001'],
            path: '/task-list',
            component: './task-list',
            icon: 'schedule',
            name: '待办任务',
          },

          {
            authority: ['002'],
            path: '/manual-management',
            component: './manual-management',
            icon: 'coffee',
            name: '手册管理',
          },

          {
            authority: ['003'],
            path: '/template-management',
            component: './template-management',
            icon: 'solution',
            name: '模板管理',
          },

          {
            authority: ['100'],
            path: '/information-management',
            icon: 'idcard',
            name: '信息管理',
            routes: [
              {
                authority: ['101'],
                path: '/information-management/user-management',
                component: './information-management/user-management',
                name: '用户管理',
              },
              {
                authority: ['102'],
                path: '/information-management/role-management',
                component: './information-management/role-management',
                name: '角色管理',
              },
              {
                authority: ['103'],
                path: '/information-management/security-setting',
                component: './information-management/security-setting',
                name: '安全设置',
              },
            ],
          },

          {
            path: '/user-setting',
            component: './user-setting',
          },

          {
            component: './404',
          },
        ],
      },
    ],
  },
];
